<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span6">
        <div class="widget-block">
          
          <div class="widget-head">
            <h5>SDM</h5>
            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php print site_url("pica/add-new/{$id_actifity_report}/1") ?>"><i class="icon-plus"></i> Add New</a></li>
              </ul>
            </div>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy4 table">
                <thead>
                  <tr>
                    <th>Date</th>
                    <th>Problem</th>
                    <th>Status</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  $status = array(
                    0 => '<span class="label label">Draft</span>',
                    1 => '<span class="label label-info">Progress</span>',
                    2 => '<span class="label label-success">Finish</span>',
                  );
                  if(is_array($data['sdm'])){
                    foreach ($data['sdm'] as $key => $value) {
                      
                      print "
                  <tr>
                    <td>
                      Create Date : {$value->tanggal_buat} <br />
                      Due Date : {$value->due_date} <br />
                      Finish Date : {$value->tanggal_selesai} <br />
                      <a data-toggle='modal' href='#Modal{$value->id_pica_new}'>Detail</a> <br />
                      <div class='modal hide fade' id='Modal{$value->id_pica_new}' aria-hidden='true' style='display: none;'>
                        <div class='modal-header'>
                          <button type='button' class='close' data-dismiss='modal'>×</button>
                          <h3>PICA</h3>
                        </div>
                        <div class='modal-body'>
                          <h4>Problem</h4>
                          <p>
                            ".  nl2br($value->problem)."
                          </p>
                          <h4>Corrective Action</h4>
                          <p>
                            ".  nl2br($value->corrective)."
                          </p>
                        </div>
                        <div class='modal-footer'>
                          <a href='#' class='btn' data-dismiss='modal'>Close</a>
                        </div>
                      </div>
                    </td>
                    <td>".  nl2br($value->problem)."</td>
                    <td>{$status[$value->fix]}</td>
                    <td>
                      <div class='btn-group'>
                        <button data-toggle='dropdown' class='btn btn-small dropdown-toggle'>Action<span class='caret'></span></button>
                        <ul class='dropdown-menu'>
                          <li><a href='".site_url("pica/add-new/{$id_actifity_report}/1/{$value->id_pica_new}")."'>Detail</a></li>
                          <li><a href='".site_url("pica/finish-pica/{$id_actifity_report}/{$value->id_pica_new}")."'>Finish</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>";
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
      
      <div class="span6">
        
        <div class="widget-block">
          
          <div class="widget-head">
            <h5>Jasa service dan Part</h5>
            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php print site_url("pica/add-new/{$id_actifity_report}/2") ?>"><i class="icon-plus"></i> Add New</a></li>
              </ul>
            </div>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy4 table">
                <thead>
                  <tr>
                    <th>Date</th>
                    <th>Problem</th>
                    <th>Status</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  $status = array(
                    0 => '<span class="label label">Draft</span>',
                    1 => '<span class="label label-info">Progress</span>',
                    2 => '<span class="label label-success">Finish</span>',
                  );
                  if(is_array($data['service_part'])){
                    foreach ($data['service_part'] as $key => $value) {
                      
                      print "
                  <tr>
                    <td>
                      Create Date : {$value->tanggal_buat} <br />
                      Due Date : {$value->due_date} <br />
                      Finish Date : {$value->tanggal_selesai} <br />
                      <a data-toggle='modal' href='#Modal{$value->id_pica_new}'>Detail</a> <br />
                      <div class='modal hide fade' id='Modal{$value->id_pica_new}' aria-hidden='true' style='display: none;'>
                        <div class='modal-header'>
                          <button type='button' class='close' data-dismiss='modal'>×</button>
                          <h3>PICA</h3>
                        </div>
                        <div class='modal-body'>
                          <h4>Problem</h4>
                          <p>
                            ".  nl2br($value->problem)."
                          </p>
                          <h4>Corrective Action</h4>
                          <p>
                            ".  nl2br($value->corrective)."
                          </p>
                        </div>
                        <div class='modal-footer'>
                          <a href='#' class='btn' data-dismiss='modal'>Close</a>
                        </div>
                      </div>
                    </td>
                    <td>".  nl2br($value->problem)."</td>
                    <td>{$status[$value->fix]}</td>
                    <td>
                      <div class='btn-group'>
                        <button data-toggle='dropdown' class='btn btn-small dropdown-toggle'>Action<span class='caret'></span></button>
                        <ul class='dropdown-menu'>
                          <li><a href='".site_url("pica/add-new/{$id_actifity_report}/1/{$value->id_pica_new}")."'>Detail</a></li>
                          <li><a href='".site_url("pica/finish-pica/{$id_actifity_report}/{$value->id_pica_new}")."'>Finish</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>";
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        
      </div>
    </div>
  </div>
  
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span6">
        
        <div class="widget-block">
          
          <div class="widget-head">
            <h5>Administrasi</h5>
            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php print site_url("pica/add-new/{$id_actifity_report}/3") ?>"><i class="icon-plus"></i> Add New</a></li>
              </ul>
            </div>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy4 table">
                <thead>
                  <tr>
                    <th>Date</th>
                    <th>Problem</th>
                    <th>Status</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  $status = array(
                    0 => '<span class="label label">Draft</span>',
                    1 => '<span class="label label-info">Progress</span>',
                    2 => '<span class="label label-success">Finish</span>',
                  );
                  if(is_array($data['admin'])){
                    foreach ($data['admin'] as $key => $value) {
                      
                      print "
                  <tr>
                    <td>
                      Create Date : {$value->tanggal_buat} <br />
                      Due Date : {$value->due_date} <br />
                      Finish Date : {$value->tanggal_selesai} <br />
                      <a data-toggle='modal' href='#Modal{$value->id_pica_new}'>Detail</a> <br />
                      <div class='modal hide fade' id='Modal{$value->id_pica_new}' aria-hidden='true' style='display: none;'>
                        <div class='modal-header'>
                          <button type='button' class='close' data-dismiss='modal'>×</button>
                          <h3>PICA</h3>
                        </div>
                        <div class='modal-body'>
                          <h4>Problem</h4>
                          <p>
                            ".  nl2br($value->problem)."
                          </p>
                          <h4>Corrective Action</h4>
                          <p>
                            ".  nl2br($value->corrective)."
                          </p>
                        </div>
                        <div class='modal-footer'>
                          <a href='#' class='btn' data-dismiss='modal'>Close</a>
                        </div>
                      </div>
                    </td>
                    <td>".  nl2br($value->problem)."</td>
                    <td>{$status[$value->fix]}</td>
                    <td>
                      <div class='btn-group'>
                        <button data-toggle='dropdown' class='btn btn-small dropdown-toggle'>Action<span class='caret'></span></button>
                        <ul class='dropdown-menu'>
                          <li><a href='".site_url("pica/add-new/{$id_actifity_report}/1/{$value->id_pica_new}")."'>Detail</a></li>
                          <li><a href='".site_url("pica/finish-pica/{$id_actifity_report}/{$value->id_pica_new}")."'>Finish</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>";
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        
      </div>
      
      <div class="span6">
        
        <div class="widget-block">
          
          <div class="widget-head">
            <h5>Marketing dan Promo</h5>
            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php print site_url("pica/add-new/{$id_actifity_report}/4") ?>"><i class="icon-plus"></i> Add New</a></li>
              </ul>
            </div>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy4 table">
                <thead>
                  <tr>
                    <th>Date</th>
                    <th>Problem</th>
                    <th>Status</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  $status = array(
                    0 => '<span class="label label">Draft</span>',
                    1 => '<span class="label label-info">Progress</span>',
                    2 => '<span class="label label-success">Finish</span>',
                  );
                  if(is_array($data['promo'])){
                    foreach ($data['promo'] as $key => $value) {
                      
                      print "
                  <tr>
                    <td>
                      Create Date : {$value->tanggal_buat} <br />
                      Due Date : {$value->due_date} <br />
                      Finish Date : {$value->tanggal_selesai} <br />
                      <a data-toggle='modal' href='#Modal{$value->id_pica_new}'>Detail</a> <br />
                      <div class='modal hide fade' id='Modal{$value->id_pica_new}' aria-hidden='true' style='display: none;'>
                        <div class='modal-header'>
                          <button type='button' class='close' data-dismiss='modal'>×</button>
                          <h3>PICA</h3>
                        </div>
                        <div class='modal-body'>
                          <h4>Problem</h4>
                          <p>
                            ".  nl2br($value->problem)."
                          </p>
                          <h4>Corrective Action</h4>
                          <p>
                            ".  nl2br($value->corrective)."
                          </p>
                        </div>
                        <div class='modal-footer'>
                          <a href='#' class='btn' data-dismiss='modal'>Close</a>
                        </div>
                      </div>
                    </td>
                    <td>".  nl2br($value->problem)."</td>
                    <td>{$status[$value->fix]}</td>
                    <td>
                      <div class='btn-group'>
                        <button data-toggle='dropdown' class='btn btn-small dropdown-toggle'>Action<span class='caret'></span></button>
                        <ul class='dropdown-menu'>
                          <li><a href='".site_url("pica/add-new/{$id_actifity_report}/1/{$value->id_pica_new}")."'>Detail</a></li>
                          <li><a href='".site_url("pica/finish-pica/{$id_actifity_report}/{$value->id_pica_new}")."'>Finish</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>";
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        
      </div>
      
    </div>
  </div>
  
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span6">
        
        <div class="widget-block">
          
          <div class="widget-head">
            <h5>Tools</h5>
            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php print site_url("pica/add-new/{$id_actifity_report}/5") ?>"><i class="icon-plus"></i> Add New</a></li>
              </ul>
            </div>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy4 table">
                <thead>
                  <tr>
                    <th>Date</th>
                    <th>Problem</th>
                    <th>Status</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  $status = array(
                    0 => '<span class="label label">Draft</span>',
                    1 => '<span class="label label-info">Progress</span>',
                    2 => '<span class="label label-success">Finish</span>',
                  );
                  if(is_array($data['tools'])){
                    foreach ($data['tools'] as $key => $value) {
                      
                      print "
                  <tr>
                    <td>
                      Create Date : {$value->tanggal_buat} <br />
                      Due Date : {$value->due_date} <br />
                      Finish Date : {$value->tanggal_selesai} <br />
                      <a data-toggle='modal' href='#Modal{$value->id_pica_new}'>Detail</a> <br />
                      <div class='modal hide fade' id='Modal{$value->id_pica_new}' aria-hidden='true' style='display: none;'>
                        <div class='modal-header'>
                          <button type='button' class='close' data-dismiss='modal'>×</button>
                          <h3>PICA</h3>
                        </div>
                        <div class='modal-body'>
                          <h4>Problem</h4>
                          <p>
                            ".  nl2br($value->problem)."
                          </p>
                          <h4>Corrective Action</h4>
                          <p>
                            ".  nl2br($value->corrective)."
                          </p>
                        </div>
                        <div class='modal-footer'>
                          <a href='#' class='btn' data-dismiss='modal'>Close</a>
                        </div>
                      </div>
                    </td>
                    <td>".  nl2br($value->problem)."</td>
                    <td>{$status[$value->fix]}</td>
                    <td>
                      <div class='btn-group'>
                        <button data-toggle='dropdown' class='btn btn-small dropdown-toggle'>Action<span class='caret'></span></button>
                        <ul class='dropdown-menu'>
                          <li><a href='".site_url("pica/add-new/{$id_actifity_report}/1/{$value->id_pica_new}")."'>Detail</a></li>
                          <li><a href='".site_url("pica/finish-pica/{$id_actifity_report}/{$value->id_pica_new}")."'>Finish</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>";
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        
      </div>
    </div>
  </div>
</div>